home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1996 / MacHack 1996.toast / Presentations / Presentations ’96 / Sessions ’96 / AI and The Mac / Demos / TravSales.MPW / PathGraph.h < prev   
Encoding:
Text File  |  1996-06-22  |  1.1 KB  |  46 lines  |  [TEXT/MPS ]

  1. //    PathGraph.h
  2. // Copyright © 1992 Emergent Behavior. All rights reserved.
  3.  
  4. #ifndef _PATHGRAPH_
  5. #define _PATHGRAPH_
  6.  
  7. #ifndef _CITYMAP_
  8.     #include "CityMap.h"
  9. #endif
  10.  
  11. #ifndef _PLOTTER_
  12.     #include "Plotter.h"
  13. #endif
  14. //========================================================================
  15. class TPathGraph
  16. {
  17. public:
  18.         // Constructors etc...
  19.                         TPathGraph( void );
  20.                         TPathGraph( const TPathGraph& sourcePathGraph );
  21.                         TPathGraph( const TCityMap& aCityMap, GrafPtr grafPort, Rect qdRect );
  22.     virtual                ~TPathGraph( void );
  23.     virtual TPathGraph*    Clone( void );
  24.     virtual    void        SetGrafPort( GrafPtr grafPort );
  25.     virtual void        SetQDRect( Rect qdRect );
  26.     virtual void        PlotCityLocations( void );
  27.     virtual    void        PlotRoute( Importance* importanceArray );
  28.     virtual TCityMap*    GetCityMap( void );
  29.  
  30. protected:
  31.     virtual    GrafPtr        GetGrafPort( void );
  32.     virtual    Rect        GetQDRect( void );
  33.     virtual    TPlotter*    GetPlotter( void );
  34.     virtual    short        FindLargestDimension( Point* cityLocationArray );
  35.     
  36.  
  37. private:
  38.     GrafPtr        fGrafPort;
  39.     Rect        fQDRect;
  40.     TPlotter*    fPlotter;
  41.     TCityMap*    fCityMap;
  42.  
  43. };
  44.  
  45.  
  46. #endif _PATHGRAPH_